package com.cyou.gamehistory.util;

public class HtmlToImage {

	public static void html2Image(String filePath, String targetPath, int i,
			int j) throws Throwable {
		// TODO 待优化，在window下报错，Linux下不清楚是否正常
		String command = ApplicationConfig.getValue("annalsImage.command");
		command = command + " --crop-w " + i + " --crop-h " + 
				j + "  " + filePath + " " + targetPath;
		Runtime.getRuntime().exec(command);
	}

}
